<?Php
namespace Libraries;
use Resources;
class PController extends Resources\Controller{
    public function __construct()
    {
        parent::__construct();
        $this->request = new Resources\Request;
        $this->session = new Resources\Session;
        $ceklogin = $this->session->getValue('islogin');
        if (!$ceklogin) {
            $this->redirect('auth/login');
        }
    }
    public function get_post($key) {
        return $this->request->post($key, FILTER_SANITIZE_MAGIC_QUOTES);
        $this->db->escape($this->request->post($key,
                        FILTER_SANITIZE_MAGIC_QUOTES));
    }    
}
?>